POV-Ray : Newsgroups : povray.advanced-users : Random variation : Random variation Server Time
29 Jul 2024 08:21:10 EDT (-0400)
  Random variation  
From: Andrew Coppin
Date: 26 Sep 2002 09:48:42
Message: <3d93103a@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I was doing a render earlier today, and I got to wondering about
something... Suppose you write something like

#declare A = seed(...);
#declare J = rand(A);
#declare K = rand(A);

POV-Ray's rand() function returns random numbers in the (closed?)
invertal 0..1. But what is the minimum difference between J and K?
Presumably if you're really fluky they might just happen to have the
exact same value (improbable but not impossible). Assuming this is
not the case, what is the smallest amount they can differ by?
Specifically, I presume that POV-Ray does its calculations using some
finite level of precition. Is the minimum difference in random
answers equal to the minimum possible difference at this precition,
or is it larger? (If that makes sense!)

It's not earth-shatteringly important for me to find out the answer,
I'm just curiose ;-)

Andrew.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPZL+L7EpzUF0Y1JeEQJk9QCdHbkAT020LB8gUwh8tEkA1ozXSegAoP5A
lbC5fJdNcH7QKG49lTvBdRmg
=aG6m
-----END PGP SIGNATURE-----


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.